package com.sqfw.project.wp.service.impl;

import java.util.List;
import com.sqfw.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sqfw.project.wp.mapper.WpReviewedItemLogMapper;
import com.sqfw.project.wp.domain.WpReviewedItemLog;
import com.sqfw.project.wp.service.IWpReviewedItemLogService;

/**
 * 审核人审核记录Service业务层处理
 * 
 * @author lx
 * @date 2023-08-14
 */
@Service
public class WpReviewedItemLogServiceImpl implements IWpReviewedItemLogService 
{
    @Autowired
    private WpReviewedItemLogMapper wpReviewedItemLogMapper;

    /**
     * 查询审核人审核记录
     * 
     * @param autoId 审核人审核记录主键
     * @return 审核人审核记录
     */
    @Override
    public WpReviewedItemLog selectWpReviewedItemLogByAutoId(Long autoId)
    {
        return wpReviewedItemLogMapper.selectWpReviewedItemLogByAutoId(autoId);
    }

    /**
     * 查询审核人审核记录列表
     * 
     * @param wpReviewedItemLog 审核人审核记录
     * @return 审核人审核记录
     */
    @Override
    public List<WpReviewedItemLog> selectWpReviewedItemLogList(WpReviewedItemLog wpReviewedItemLog)
    {
        return wpReviewedItemLogMapper.selectWpReviewedItemLogList(wpReviewedItemLog);
    }

    /**
     * 新增审核人审核记录
     * 
     * @param wpReviewedItemLog 审核人审核记录
     * @return 结果
     */
    @Override
    public int insertWpReviewedItemLog(WpReviewedItemLog wpReviewedItemLog)
    {
        wpReviewedItemLog.setCreateTime(DateUtils.getNowDate());
        return wpReviewedItemLogMapper.insertWpReviewedItemLog(wpReviewedItemLog);
    }

    /**
     * 修改审核人审核记录
     * 
     * @param wpReviewedItemLog 审核人审核记录
     * @return 结果
     */
    @Override
    public int updateWpReviewedItemLog(WpReviewedItemLog wpReviewedItemLog)
    {
        wpReviewedItemLog.setUpdateTime(DateUtils.getNowDate());
        return wpReviewedItemLogMapper.updateWpReviewedItemLog(wpReviewedItemLog);
    }

    /**
     * 批量删除审核人审核记录
     * 
     * @param autoIds 需要删除的审核人审核记录主键
     * @return 结果
     */
    @Override
    public int deleteWpReviewedItemLogByAutoIds(Long[] autoIds)
    {
        return wpReviewedItemLogMapper.deleteWpReviewedItemLogByAutoIds(autoIds);
    }

    /**
     * 删除审核人审核记录信息
     * 
     * @param autoId 审核人审核记录主键
     * @return 结果
     */
    @Override
    public int deleteWpReviewedItemLogByAutoId(Long autoId)
    {
        return wpReviewedItemLogMapper.deleteWpReviewedItemLogByAutoId(autoId);
    }
}
